package javaapplication;


public class XItemPlancheBoutonMenu extends XItemPlancheBouton {
    
    private XPlanche.CmdInstanciation  destination;
    
    public XItemPlancheBoutonMenu (String nom, XPlanche.CmdInstanciation destination) {
        super(nom);
        this.destination = destination;
    }
    
    public XItemPlancheBoutonMenu (String nom, XPlanche.CmdInstanciation destination, boolean actif) {
        super(nom, actif);
        this.destination = destination;
    }
    
    protected void actionClicSouris () {
        if (destination != null) {
           Framemain.getInstance().setPlanche(destination.getInstance());
        }
    }
    
}
